package com.fas.system.domain;

import com.fas.common.core.domain.BaseEntity;
import lombok.Data;

/**
 * @Date 2022-07-17
 * 设备状态历史表
 */
@Data
public class FasEquipmentStatusHistory extends BaseEntity {

    private Integer id;//主键
    private String equipmentNumber;//设备编号
    private Integer status;//设备状态 0正常 1故障 2离线 3报警 为空则是：未启用
    private String additional;//额外的信息
    private String data;//设备的参数

    // 非表数据
    private String systemId;// 设备所属系统
    private String position;//设备位置
    private String deptName;//单位名称
    private Integer deptId;//单位编号

    public FasEquipmentStatusHistory() {
    }

    public FasEquipmentStatusHistory(String equipmentNumber, Integer status, String additional, String data) {
        this.equipmentNumber = equipmentNumber;
        this.status = status;
        this.additional = additional;
        this.data = data;
    }
}
